<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<script>
    document.write('<table width="500px" border="1px">');
    for(var a=1; a<10;a++){
        document.write('<tr>');
        for(var b=1; b<=a; b++){
            document.write('<td>'+b+'*'+a+'='+a*b+'</td>');
        }
        document.write('</tr>')
    }
    document.write('</table>');
</script>
</body>
</html>